import { createSlice } from '@reduxjs/toolkit'
const counterSlice = createSlice({
  name: 'counter',
  initialState: {
    value: 10,
  },
  reducers: {
    incremented: (state) => {
      console.log(state)
      state.value += 1
    },
    decremented: (state) => {
      state.value -= 1
    },
  },
})
export default counterSlice.reducer
